package com.zy1;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LoginService {
    private static final Logger logger = LoggerFactory.getLogger(LoginService.class);

    public void login(String username, String password) {
        
        logger.info("开始处理用户登录，请求用户：{}", username);

        if ("admin".equals(username) && "123456".equals(password)) {
            logger.info("用户 {} 登录成功！", username);
        } else {
            logger.warn("用户 {} 登录失败，密码错误。", username);
        }
    }

}
